// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fowo.api.common.model.OptionItem;
import com.fowo.api.common.model.PageSearch;
import com.fowo.api.entity.NavSellOrder;
import com.fowo.api.model.nav.sell.order.NavSellOrderGetInventoryParam;
import com.fowo.api.model.nav.sell.order.NavSellOrderGetInventoryResult;
import com.fowo.api.model.nav.sell.order.NavSellOrderItemVo;
import com.fowo.api.model.nav.sell.order.NavSellOrderSearchParamPo;
import com.fowo.api.model.nav.sell.order.NavSellOrderSelectCostPriceParam;
import com.fowo.api.model.nav.sell.order.NavSellOrderSelectCostPriceResult;
import com.fowo.api.model.nav.sell.order.NavSellOrderSelectJoinOrderResult;
import com.fowo.api.model.nav.sell.order.NavSellOrderSelectNoPariOrderIdListParam;
import com.fowo.api.model.nav.sell.order.NavSellOrderSelectNoPariOrderIdListResult;
import com.fowo.api.model.nav.sell.order.NavSellOrderSelectPariListParam;
import com.fowo.api.model.nav.sell.order.NavSellOrderSelectPariListResult;
import com.fowo.api.model.nav.sell.order.NavSellOrderSelectPrintDetailParam;
import com.fowo.api.model.nav.sell.order.NavSellOrderSelectPrintDetailResult;
import com.fowo.api.model.nav.sell.order.NavSellOrderSelectPrintParam;
import com.fowo.api.model.nav.sell.order.NavSellOrderSelectPrintResult;
import com.fowo.api.model.nav.sell.order.NavSellOrderSelectProductParam;
import com.fowo.api.model.nav.sell.order.NavSellOrderSelectProductResult;
import com.fowo.api.model.nav.sell.order.NavSellOrderSelectSplitOrderResult;
import com.fowo.api.model.nav.sell.order.NavSellOrderSelectTagCountResult;
import com.fowo.api.model.nav.sell.order.NavSellOrderVo;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface NavSellOrderMapper extends BaseMapper<NavSellOrder> {
  Page<NavSellOrderItemVo> pageSearch(
    @Param("page") Page page,
    @Param("search") NavSellOrderSearchParamPo search
  );
  List<OptionItem<NavSellOrderItemVo>> searchOptions(
    @Param("search") NavSellOrderSearchParamPo search
  );
  List<NavSellOrderItemVo> search(
    @Param("search") NavSellOrderSearchParamPo search
  );
  Date searchLastUpdateTime(@Param("search") NavSellOrderSearchParamPo search);
  /**
   * 搜索满足条件的所有记录的编号列表
   * @param search 搜索参数
   * @return 编号列表
   */
  List<Long> searchIds(@Param("search") NavSellOrderSearchParamPo search);
  /**
   * 搜索满足条件的记录数量
   * @param search 搜索参数
   * @return 记录数量
   */
  Long searchCount(@Param("search") NavSellOrderSearchParamPo search);
  Long getIdByOrderId(@Param("orderId") String orderId);

  List<Long> getIdsByOrderId(@Param("list") List<String> list);

  String getOrderIdById(@Param("id") Long id);

  List<Map<String, Object>> getOrderIdByIds(@Param("ids") List<Long> ids);
  NavSellOrderVo selectVoById(@Param("id") Long id);
  /**
   * 全部
   */
  List<NavSellOrderItemVo> allOrder(
    @Param("search") NavSellOrderSearchParamPo search
  );

  /**
   * 获取全部编号列表
   */
  List<Long> allOrderIds(@Param("search") NavSellOrderSearchParamPo search);

  /**
   * 获取全部的总数
   */
  Long allOrderCount(@Param("search") NavSellOrderSearchParamPo search);

  /**
   * 全部分页
   */
  Page<NavSellOrderItemVo> allOrderPage(
    @Param("page") Page page,
    @Param("search") NavSellOrderSearchParamPo search
  );
  Date allOrderLastUpdateTime(
    @Param("search") NavSellOrderSearchParamPo search
  );
  /**
   * 待审核
   */
  List<NavSellOrderItemVo> pendingAuditOrder(
    @Param("search") NavSellOrderSearchParamPo search
  );

  /**
   * 获取待审核编号列表
   */
  List<Long> pendingAuditOrderIds(
    @Param("search") NavSellOrderSearchParamPo search
  );

  /**
   * 获取待审核的总数
   */
  Long pendingAuditOrderCount(
    @Param("search") NavSellOrderSearchParamPo search
  );

  /**
   * 待审核分页
   */
  Page<NavSellOrderItemVo> pendingAuditOrderPage(
    @Param("page") Page page,
    @Param("search") NavSellOrderSearchParamPo search
  );
  Date pendingAuditOrderLastUpdateTime(
    @Param("search") NavSellOrderSearchParamPo search
  );
  /**
   * 待发货
   */
  List<NavSellOrderItemVo> pendingDeliverOrder(
    @Param("search") NavSellOrderSearchParamPo search
  );

  /**
   * 获取待发货编号列表
   */
  List<Long> pendingDeliverOrderIds(
    @Param("search") NavSellOrderSearchParamPo search
  );

  /**
   * 获取待发货的总数
   */
  Long pendingDeliverOrderCount(
    @Param("search") NavSellOrderSearchParamPo search
  );

  /**
   * 待发货分页
   */
  Page<NavSellOrderItemVo> pendingDeliverOrderPage(
    @Param("page") Page page,
    @Param("search") NavSellOrderSearchParamPo search
  );
  Date pendingDeliverOrderLastUpdateTime(
    @Param("search") NavSellOrderSearchParamPo search
  );
  /**
   * 已发货
   */
  List<NavSellOrderItemVo> deliverOrder(
    @Param("search") NavSellOrderSearchParamPo search
  );

  /**
   * 获取已发货编号列表
   */
  List<Long> deliverOrderIds(@Param("search") NavSellOrderSearchParamPo search);

  /**
   * 获取已发货的总数
   */
  Long deliverOrderCount(@Param("search") NavSellOrderSearchParamPo search);

  /**
   * 已发货分页
   */
  Page<NavSellOrderItemVo> deliverOrderPage(
    @Param("page") Page page,
    @Param("search") NavSellOrderSearchParamPo search
  );
  Date deliverOrderLastUpdateTime(
    @Param("search") NavSellOrderSearchParamPo search
  );
  /**
   * 不发货
   */
  List<NavSellOrderItemVo> noDeliverOrder(
    @Param("search") NavSellOrderSearchParamPo search
  );

  /**
   * 获取不发货编号列表
   */
  List<Long> noDeliverOrderIds(
    @Param("search") NavSellOrderSearchParamPo search
  );

  /**
   * 获取不发货的总数
   */
  Long noDeliverOrderCount(@Param("search") NavSellOrderSearchParamPo search);

  /**
   * 不发货分页
   */
  Page<NavSellOrderItemVo> noDeliverOrderPage(
    @Param("page") Page page,
    @Param("search") NavSellOrderSearchParamPo search
  );
  Date noDeliverOrderLastUpdateTime(
    @Param("search") NavSellOrderSearchParamPo search
  );
  /**
   * 平台发货
   */
  List<NavSellOrderItemVo> platformDeliverOrder(
    @Param("search") NavSellOrderSearchParamPo search
  );

  /**
   * 获取平台发货编号列表
   */
  List<Long> platformDeliverOrderIds(
    @Param("search") NavSellOrderSearchParamPo search
  );

  /**
   * 获取平台发货的总数
   */
  Long platformDeliverOrderCount(
    @Param("search") NavSellOrderSearchParamPo search
  );

  /**
   * 平台发货分页
   */
  Page<NavSellOrderItemVo> platformDeliverOrderPage(
    @Param("page") Page page,
    @Param("search") NavSellOrderSearchParamPo search
  );
  Date platformDeliverOrderLastUpdateTime(
    @Param("search") NavSellOrderSearchParamPo search
  );
  /**
   * 可合并订单
   */
  List<NavSellOrderItemVo> canJoinOrder(
    @Param("search") NavSellOrderSearchParamPo search
  );

  /**
   * 获取可合并订单编号列表
   */
  List<Long> canJoinOrderIds(@Param("search") NavSellOrderSearchParamPo search);

  /**
   * 获取可合并订单的总数
   */
  Long canJoinOrderCount(@Param("search") NavSellOrderSearchParamPo search);

  /**
   * 可合并订单分页
   */
  Page<NavSellOrderItemVo> canJoinOrderPage(
    @Param("page") Page page,
    @Param("search") NavSellOrderSearchParamPo search
  );
  Date canJoinOrderLastUpdateTime(
    @Param("search") NavSellOrderSearchParamPo search
  );
  /**
   * 查询合并订单
   */
  Page<NavSellOrderSelectJoinOrderResult> selectJoinOrder(
    Page page,
    @Param("search") PageSearch param
  );
  /**
   * 查询拆分订单
   */
  Page<NavSellOrderSelectSplitOrderResult> selectSplitOrder(
    Page page,
    @Param("search") PageSearch param
  );
  /**
   * 库存预览
   */
  Page<NavSellOrderGetInventoryResult> getInventory(
    Page page,
    @Param("search") NavSellOrderGetInventoryParam param
  );
  /**
   * 获取打单,面单,发货单打印主表信息
   */
  List<NavSellOrderSelectPrintResult> selectPrint(
    NavSellOrderSelectPrintParam param
  );
  /**
   * 获取打单,面单,发货单打印详情信息
   */
  List<NavSellOrderSelectPrintDetailResult> selectPrintDetail(
    NavSellOrderSelectPrintDetailParam param
  );
  /**
   * 获取标签数量
   */
  Page<NavSellOrderSelectTagCountResult> selectTagCount(
    Page page,
    @Param("search") PageSearch param
  );
  /**
   * 换货
   */
  Page<NavSellOrderSelectPariListResult> selectPariList(
    Page page,
    @Param("search") NavSellOrderSelectPariListParam param
  );
  /**
   * 配对
   */
  Page<NavSellOrderSelectProductResult> selectProduct(
    Page page,
    @Param("search") NavSellOrderSelectProductParam param
  );
  /**
   * 根据msku查询未配对列表
   */
  List<NavSellOrderSelectNoPariOrderIdListResult> selectNoPariOrderIdList(
    NavSellOrderSelectNoPariOrderIdListParam param
  );
  /**
   * 查询预估出库成本
   */
  List<NavSellOrderSelectCostPriceResult> selectCostPrice(
    NavSellOrderSelectCostPriceParam param
  );
}
